package controllers;
import models.User;
import play.mvc.Before;
import play.mvc.Controller;
import utils.SessionUtils;

public class AdminCheck extends Controller {

    @Before
    public static void checkLogin() throws Throwable {
        if ( session.get("Admin_key") == null) {
            Users.loginPage();
        }
    }
}
